//
//  XRmenuError.m
//  XRmenu
//
//  Created by Gao Yan on 11-11-23.
//  Copyright 2011年 foxhis. All rights reserved.
//

#import "XRmenuError.h"
#import "AllInclude.h"

@implementation XRmenuError

+(id) createError:(NSString *)errmsg ECode:(NSInteger)errcode
{
	NSString *errorMsg = [[NSString alloc] initWithFormat:@"%@",errmsg];
	NSDictionary *uDict = [NSDictionary dictionaryWithObject:errorMsg forKey:NSLocalizedDescriptionKey];
	[errorMsg release];
	XRmenuError *error = [XRmenuError errorWithDomain:kErrorDomain code:errcode userInfo:uDict];
	return error;
}
@end
